<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>百Girl全书--文章列表</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap-responsive.css">
<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- 注意：需要jquery1.7以上版本 -->
<script type="text/javascript" charset="UTF-8" src="/js/jquery-1.7.2.min.js"></script>
<!-- twitter bootstrap -->
<script type="text/javascript" charset="UTF-8" src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
	<!-- 公用头部 -->
	<%@ include file="../header.jsp"%>
	<!-- 页面内容    begin -->
	<div class="container" style="background-color: ##DCEAF4;">
		<div class="hero-unit">
			<c:forEach items="${articles}" var="art">
				<div class="posts" >
					<h2>
						<a href="/article/view/${art.id}" target="_blank">${art.title}</a>
					</h2>
					<div style="margin:15px 5px;"class="postmeta" >
						<span class="author">
							<strong><a rel="author" title="由 ${art.createUser}发布" href="#">${art.createUser}</a></strong>
						</span>
						发表于 
						<strong><abbr title="<fmt:formatDate value="${art.createTime}" type="both" />" class="timeago"><fmt:formatDate value="${art.createTime}" type="both" /></abbr></strong> | <span class="comment-count-number">10 条评论</span>
					</div>
					<div class="row">
						<div class="three columns span3">
				        	<a class="thumbnail" href="/article/view/${art.id}">
				            	<img alt="${art.title}" src="http://placehold.it/260x180">
				        	</a>
						</div>
						<div class="nine columns span7">
							<p>
								${art.summary}
							</p>
							<div class="row">
								<div class="readmore" style="float:right;">
									<a href="/article/view/${art.id}" class="btn btn-primary btn-large" target="_blank">继续阅读</a>
								</div>
							</div>
						</div>
					</div>
					<hr>
				</div>
			</c:forEach>
	      	<!-- 分页组件 -->
	      	<%@ include file="../page.jsp"%>
		</div>
		<hr>
		<!-- 页面内容    end -->
		<!-- 公用底部 -->
		<%@ include file="../footer.jsp"%>
	</div>
</body>
</html>
<script type="text/javascript">
	$(document).ready(function() {
		//选中操作键
		$("#article").addClass("active");
	});
	//分页
	function turnPage(pageNo)
	{
		window.location.href="/article/list/"+pageNo;
	}
</script>